/*
 * Public Credit Information Sharing Platform(PCISP).
 * Copyright (c) 2019-2020 jsxzkingdee and/or its affiliates. All rights reserved.
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
 * Please visit https://www.zhengxinsoft.com if you need additional information or have any questions.
 */

package com.platform.enums;

import com.google.common.base.Strings;
import com.platform.comm.enums.IEnum;

/**
 * Description: 信息类类别
 *
 * @author libin created on 2020/5/23.
 */
public enum  EvalReportItemType implements IEnum<String> {
    /**
     *
     */
    BASE("基本信息"),
    CREDIT("信用信息"),
    SGS("双公示"),
    CREDITEVAL("信用评价");

    private final String text;

    EvalReportItemType(String text) {
        this.text = text;
    }

    @Override
    public String getKey() {
        return name();
    }

    @Override
    public String getText() {
        return text;
    }

    @Override
    public boolean is(String key) {
        if (Strings.isNullOrEmpty(key)) {
            return false;
        }
        return name().equals(key);
    }
}
